<div id="content">
    <div class="left">

        <h1>Update Schedule</h1>
        <hr/><br/>
        <h3>Update Your Schedule Profile here:</h3>
        <br/>

        <?php
        echo form_open('schedule/do_update_schedule', '', array('schedule_id' => $updated_schedule[0]->schedule_id));

        echo '<fieldset>';
        echo '<legend>Schedule Profile:</legend>';
        echo br(1);

        echo form_label('Schedule Name:', 'name', array('class' => 'left_col1'));
        echo form_input(array('name' => 'schedule_name', 'id' => 'name', 'class' => 'left_col2', 'value' => $updated_schedule[0]->schedule_name));
        echo nbs(3);
        echo '<span id="name_msg"></span>';
        echo br(1);
        echo '<div id="clear"></div>';

        echo form_label('Destination Country:', 'country', array('class' => 'left_col1'));
        echo form_dropdown('country_id', $country, $updated_schedule[0]->country_id, 'id = "country" class = "left_col2"'); //$country is used as $option as it was pre-crafted in schedule model
        echo br(1);
        echo '<div id="clear"></div>';

        echo form_label('Remark about Schedule:', 'remarks', array('class' => 'left_col1'));
        echo form_textarea(array('name' => 'remark', 'id' => 'remarks', 'value' => $updated_schedule[0]->schedule_remark, 'rows' => '5', 'cols' => '40', 'class' => 'left_col2'));
        echo br(1);
        echo '<div id="clear"></div>';
        echo br(1);

        echo '</fieldset>';
        echo br(3);

        echo form_submit(array('name' => 'submit', 'id' => 'schedule'), 'Save Update');

        echo form_close();
        ?>
    </div>
</div>
